package com.eduadmin.mapper;

import com.eduadmin.entity.TeachInfo;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface TeachInfoMapper {
    //hgm 批量导入任教信息
    int insertTeachInfos(List<TeachInfo> teachInfos);

    // zlc 添加
    // 按条件(学期，年级，班级，学科)查询教师姓名
    List<TeachInfo> getTeacherNameByParam(String semesterName, String gradeName, String teamName, String courseName);

    //hgm 获取所有任教信息 分页显示
    List<TeachInfo> selectAllTeachInfo(Map<String, Object> paraMap);

    //hgm 获取总数
    Long selectAllTeachInfoTotal(Map<String, Object> paraMap);

    //hgm 更新任教信息
    int updateTeachInfo(TeachInfo teachInfo);

    //hgm 删除任教信息
    int deleteTeachInfo(String teachIds);

    //hgm 获取任教信息 判断是否重复
    List<TeachInfo> selectTeachInfo(TeachInfo teachinfo);

    //hgm 获取任教信息
    List<TeachInfo> selectTeachInfoByTeacherIdCard(String teacherIdCard);

    //hgm 获取某教师的 任教信息
    List<TeachInfo> selectTeachInfoOfTeacher(Map<String, Object> paraMap);
}